import dayjs from "dayjs";
import Eddata from "@/app/(Home)/home/Ed";

import Deldata from "@/app/(Home)/home/Del";
import { Space } from "antd";
const columns = [



  {
    title: '姓名',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '状态',
    dataIndex: 'status',
    key: 'status',
  },
  {
    title: '开机时间',
    dataIndex: 'startup',
    key: 'startup',
  },
  {
    title: 'docker',
    dataIndex: 'docker',
    key: 'docker',
  },

  {
    title: '分组',
    dataIndex: 'pay',
    key: 'docker',
  },
  {
    title: '备注',
    dataIndex: 'bz',
    key: 'bz',
  },
  {
    title: '提交时间',
    dataIndex: 'time',
    key: 'time',
    render: (date) => dayjs(date).format('YYYY年MM月DD日 HH:mm:ss'),
  },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'action',
    render: (_,datatype) => {
       return (
      <>
      <Space>
        
        <Eddata id={datatype.id}></Eddata>
     <Deldata id={datatype.id}></Deldata>
        </Space>
        </>
      
       )
    }
      
   
  },
];
export default columns
